<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <!--<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">-->
    <!--<meta http-equiv="Pragma" content="no-cache">-->
    <!--<meta http-equiv="Expires" content="0">-->
    <!--上三句的作用：清除浏览器的缓存，以达到刷新的作用-->
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <meta content="telephone=no,email=no" name="format-detection">
    <link rel="stylesheet" href="<?=base_url()?>/assets/wap/css/gg.css?_=<?=STATIC_VERSION?>">
    <link rel="stylesheet" href="<?=base_url()?>/assets/wap/css/index.css?_=<?=STATIC_VERSION?>">
    <link rel="stylesheet" href="<?=base_url()?>/assets/wap/css/swiper.min.css?_=<?=STATIC_VERSION?>">
    <script src="<?=base_url()?>/assets/wap/js/jquery-1.8.3.min.js"></script>
    <script src="<?=base_url()?>/assets/wap/js/index1.js?_=<?=STATIC_VERSION?>"></script>
    <title>丘丘谷</title>
</head>
<body>
<div class="top-img">
    <img src="<?=$detail['thumb']?>" alt="">
    <div class="top-sub">
        <div class="sub-text lf">
            <h3><?=$detail['goodsName']?></h3>
            <p class="stars">
                <?php for($i = 0; $i < $detail['stars']; $i++):?>
                <img src="<?=base_url()?>assets/wap/images/stars.png" alt="">
                <?php endfor;?>
            </p>
        </div>
        <div class="sub-price rf">
            ￥<?=$detail['price']?>
        </div>
    </div>
</div>
<div class="split"></div>
<div style="display: block; margin-top: 20px; margin-bottom: 20px;" class="main">
    <?=$detail['content']?>
</div>
<?php if (!empty($detail['related']['data'])) :?>
<div class="related">
    <div class="rel-head">
        <div class="rel-line"></div>
        <div class="rel-title">
            <span>相关产品</span>
        </div>
    </div>
    <ul class="rel-body">
        <?php foreach($detail['related']['data'] as $rel):?>
        <li class="rel-item">
            <div class="item-body">
                <a href="/goods/detail?goodsId=<?=$rel['goodsId']?>" class="thumb" href="#"><img src="<?=$rel['thumb']?>" alt=""></a>
                <a href="/goods/detail?goodsId=<?=$rel['goodsId']?>" class="title">
                    <?=$rel['goodsName']?>
                </a>
                <p class="badge">
                    <span class="lf">惊爆价</span>
                    <strong class="rf">￥<?=$rel['price']?></strong>
                </p>
            </div>
        </li>
        <?php endforeach;?>
    </ul>
</div>
<?php endif; ?>
<div class="buy">
    <div class="left-slide">
        <div class="buy-share">
            <p class="head"></p>
            <p class="foot">分享</p>
        </div>
        <div class="buy-car">
            <p class="head">
                <span>12</span>
            </p>
            <p class="foot">购物车</p>
        </div>
    </div>
    <div class="right-slide">
        <a href="javascript:void(0)">加入购物车</a>
    </div>
</div>
<script src="<?=base_url()?>/assets/wap/js/swiper.min.js?_=<?=STATIC_VERSION?>"></script>

</body>
</html>